package cn.fuxue.hrms.service.impl;

import cn.fuxue.hrms.common.base.AbstractService;
import cn.fuxue.hrms.common.entity.Permission;
import cn.fuxue.hrms.mapper.PermissionMapper;
import cn.fuxue.hrms.service.PermissionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Collections;
import java.util.List;

@Service
public class PermissionServiceImpl extends AbstractService<Permission,Integer> implements PermissionService {

    @Autowired
    private PermissionMapper permissionMapper;

    @Autowired
    @Override
    public void setBaseMapper() {
        super.setBaseMapper(permissionMapper);
    }

    @Override
    public List<Permission> find() {
        return permissionMapper.find();
    }
}
